home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / ProgressiveMesh / readme.txt < prev    next >
Encoding:
Text File  |  2001-10-10  |  2.7 KB  |  63 lines

  1. //-----------------------------------------------------------------------------
  2. // Name: ProgressiveMesh Direct3D Sample
  3. // 
  4. // Copyright (c) 1998-2001 Microsoft Corporation. All rights reserved.
  5. //-----------------------------------------------------------------------------
  6.  
  7.  
  8. Description
  9. ===========
  10.    The ProgressiveMesh sample illustrates how to load and optimize a file-based
  11.    mesh using the D3DX mesh utility functions. A progressive mesh is one in
  12.    which the vertex information is stored internally in a special tree which
  13.    can be accessed to render the mesh with any given number of vertices. This
  14.    procedure is fast, so progressive meshes are ideal for level-of-detail
  15.    scenarios, where objects in the distance are render with fewer polygons.
  16.  
  17.    For more info on D3DX, refer to the DirectX SDK documentation.
  18.  
  19.  
  20. Path
  21. ====
  22.    Source:     DXSDK\Samples\Multimedia\D3D\ProgressiveMesh
  23.    Executable: DXSDK\Samples\Multimedia\D3D\Bin
  24.  
  25.  
  26. User's Guide
  27. ============
  28.    The following keys are implemented. The dropdown menus can be used for the
  29.    same controls.
  30.       <Enter>     Starts and stops the scene
  31.       <Space>     Advances the scene by a small increment
  32.       <F1>        Shows help or available commands.
  33.       <F2>        Prompts user to select a new rendering device or display mode
  34.       <Alt+Enter> Toggles between fullscreen and windowed modes
  35.       <Esc>       Exits the app.
  36.  
  37.       <Up>        Adds one vertex to the progressive mesh
  38.       <Down>      Subtracts one vertex to the progressive mesh
  39.       <Page Up>   Adds 100 vertices to the progressive mesh
  40.       <Page Dn>   Subtracts 100 vertices to the progressive mesh
  41.       <Home>      Displays all available vertices for the progressive mesh
  42.       <End>       Displays the minimum vertices for the progressive mesh
  43.  
  44.  
  45. Programming Notes
  46. =================
  47.    Many Direct3D samples on the DirectX SDK use file-based meshes. This sample
  48.    is a good sample to look to see the bare bones code necessary for loading a
  49.    mesh. Note that the D3DX mesh loading functionality collapses the frame 
  50.    hierarchy of a .x file into one mesh.
  51.  
  52.    The main difference for using progressive meshes is the call to 
  53.    SetNumVertices() for the mesh.
  54.    
  55.    For other samples, the bare bones D3DX mesh functionality is wrapped in a 
  56.    common class class CD3DMesh. If it is desired to keep the frame hierarchy,
  57.    the common class CD3DFile can be used.
  58.  
  59.    This sample makes use of common DirectX code (consisting of helper functions,
  60.    etc.) that is shared with other samples on the DirectX SDK. All common
  61.    headers and source code can be found in the following directory:
  62.       DXSDK\Samples\Multimedia\Common
  63.